package org.personal.entity;

import java.util.LinkedList;
import java.util.List;

import org.myhibernate.annotation.MapProperty;
import org.myhibernate.annotation.MapProperty.Id;
import org.myhibernate.annotation.MapProperty.MapType;

public class User 
{
	@MapProperty(id=Id.TRUE)
	private String uid="";
	private String pid="";
	private String name="";
	
	private String sex="";
	private String mail="";
	private int age=0;
	
	//直接父层
	private List<String> parents=new LinkedList<String>();
	//所有父层,初始化时查询读取
	@MapProperty(map=MapType.FALSE)
	private List<String> groups=new LinkedList<String>();
	
	@MapProperty(id=Id.TRUE)
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public List<String> getGroups() 
	{
		return groups;
	}
	public void setGroups(List<String> groups) 
	{
		this.groups = groups;
	}
	public List<String> getParents() {
		return parents;
	}
	public void setParents(List<String> parents) {
		this.parents = parents;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
}
